package com.pkk;

import com.pkk.cloud.support.admin.oauth2.api.EnableAdminApi;
import com.pkk.cloud.support.oauth2.config.EnableOAuth2Center;
import org.springframework.boot.SpringApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableOAuth2Client;

/**
 * @description: 微服务的安全认证服务
 * @author: peikunkun
 * @create: 2019-09-19 13:50
 **/
//开启缓存
@EnableCaching
//开启admin的接口调用
@EnableAdminApi
//开启feign调用
@EnableFeignClients
@EnableOAuth2Client
//开启自定义注解的一些oauth的必要配置
@EnableOAuth2Center
@SpringCloudApplication
public class CloudSupportOauthCenterApplication {

  public static void main(String[] args) {
    SpringApplication.run(CloudSupportOauthCenterApplication.class, args);
  }
}
